# It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Desktop Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description - Script to set Proxy # Parameter - "" , "" , "" # Configuration Type - COMPUTER # eg : networksetup -setwebproxy "Ethernet" myproxy.example.com 8000 # parameters above are Ethernet , myproxy.example.com , 8000 if [ $# == '3' ]; then networksetup -setwebproxy "$1" $2 $3 ret=$? if [ $ret == "0" ]; then echo "Proxy set successfully " else echo "Error in executing code" fi exit $ret else echo "Invalid Arguments - Please refer description of the script" exit 1 fi